//
//  MineApis.m
//  jzyStudents
//
//  Created by 任辰东 on 2022/9/22.
//

#import "MineApis.h"

@implementation MineApis

+ (void)feedbackForStudentRequestWithParams:(NSDictionary *)params SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v1/feedbackForStudent" withParams:params onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

+ (void)updatePasswordRequestWithParams:(NSDictionary *)params SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v1/updatePassword" withParams:params onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

+ (void)jzxx_JiaoyuJingliListRequestWithParams:(NSDictionary *)params SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v2/jzxx_JiaoyuJingliList" withParams:params onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

+ (void)jzxx_StudentInfoRequestWithParams:(NSDictionary *)params SuccessBlock:(requestSuccessBlock)success FailureBlock:(requestFailureBlock)failure
{
    [[NetworkManager sharedManager] postDataWithURL:@"/v2/jzxx_StudentInfo" withParams:params onCompletion:^(NSNumber *code, NSString *msg, id responseData) {
        
        success(code,msg,responseData);
        
    } onError:^(NSNumber *code, NSString *msg) {
        
        failure(code,msg);
    }];
}

@end
